package main

import (
	"context"
	"encoding/json"
	"fmt"
	"gbox-one-machine/discovery"
	"time"
)

func main() {
	nodes, err := discovery.Browse(context.TODO(), "equipment", time.Second*5)
	if err != nil {
		panic(err)
	}

	nodesJSON, err := json.MarshalIndent(nodes, "", "  ")
	if err != nil {
		panic(err)
	}
	fmt.Printf("%s", nodesJSON)

}
